import request from '@/utils/request'

// 查询环境管理列表
export function listElement(data) {
    return request({
      url: '/project/testplatfromEnvironment/list',
      method: 'post',
      data: data
    })
}



// 新增环境管理
export function addEnvironment(data) {
    return request({
      url: '/project/testplatfromEnvironment',
      method: 'post',
      data: data
    })
}


//查看详情

export function getEnvironment(environmentId) {
    return request({
      url: '/project/testplatfromEnvironment/detail/'+ environmentId,
      method: 'get'
    })
}

//删除环境

export function delEnvironment(environmentId) {
    return request({
      url: '/project/testplatfromEnvironment/'+ environmentId,
      method: 'delete'
    })
}

//获取项目管理下拉列表

export function selectTestPlatfromProject() {
  return request({
    url: '/project/testplatfromProject/selectList',
    method: 'get'
  })
}